function myNew(fun,...arg){
    var obj = {}
    Object.setPrototypeOf(obj,fun.prototype)
    let result = fun.apply(obj,[...arg])
    return result instanceof Object? result : obj
}